home *** CD-ROM | disk | FTP | other *** search
/ Power DOS 1996 July / Power DOS - July 1996.iso / sound / c_labs / devinfo / mpu401.exe / SBCUTILS.H < prev    next >
Text File  |  1996-04-18  |  2KB  |  62 lines

  1. /* -------------------------------------------------------------------------- */
  2. /* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      */
  3. /* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE        */
  4. /* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR      */
  5. /* PURPOSE.                                                                   */
  6. /*                                                                            */
  7. /* You have a royalty-free right to use, modify, reproduce and                */
  8. /* distribute the Sample Files (and/or any modified version) in               */
  9. /* any way you find useful, provided that you agree that                      */
  10. /* Creative has no warranty obligations or liability for any Sample Files.    */
  11. /*----------------------------------------------------------------------------*/
  12.  
  13.  
  14. /* ---------------------------------------------------------------------------
  15.   Program:  Sound Blaster Utilities
  16.   Filename: SBCUTILS.H
  17.   Author:   Scott E. Sindorf
  18.   Language: Borland C
  19.   Date:     30 Jun 93
  20.   
  21.   Copyright (c) 1993-1996 Creative Labs, Inc.
  22. -----------------------------------------------------------------------------*/
  23. #define ERROR       -1
  24. #define OK           0
  25. #define ON           1
  26. #define OFF          0
  27.  
  28. #define MSB          0x80
  29.  
  30. #define SBC          1                    // Card types
  31. #define SBMCV        1
  32. #define SBPRO        2
  33. #define SB20         3
  34. #define SBPRO2       4
  35. #define SBMCVPRO     5
  36. #define SB16         6
  37.  
  38. #define DSP_RST      0x06                 // DSP reset port
  39. #define DSP_RD_ST    0x0e                 // DSP read buffer status port
  40. #define DSP_RD       0x0a                 // DSP read port
  41. #define DSP_WR_ST    0x0c                 // DSP write buffer status port
  42. #define DSP_WR       0x0c                 // DSP write port
  43.  
  44. #define DSP_RST_OK   0xaa                 // DSP reset OK
  45.  
  46. typedef struct                            // BLASTER environment record
  47. {
  48.   int baseAddr;
  49.   unsigned char DSPint;
  50.   unsigned char DMA8;
  51.   unsigned char model;
  52.   unsigned char DMA16;
  53.   int midiPort;
  54. } BLASTREC;
  55.  
  56. //------------------------
  57. // FUNCTION DECLARATIONS
  58. //------------------------
  59.  
  60. int GetBlastInfo(BLASTREC *blastInfo);
  61. int DSPReset(void);
  62.